package com.stone.serverless.dashboard.controller;

import cn.hutool.core.codec.Base64;
import com.stone.serverless.dashboard.DashBoardConsumer;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Description: TODO
 * @Author: MECHREVO
 * @Date: 2022/1/13 9:53
 * @Version: 1.0.0
 */
@RestController
public class InstallController {


    @GetMapping("/install")
    public void install(@RequestParam(value = "jarPath") String jarPath) {
        DashBoardConsumer.INSTANCE.jarLoadService.install(Base64.decodeStr(jarPath));

    }
}
